import account from './account/account'
import user from './user/user'
import workbench from './workbench/workbench'
let apiList = {
	account,
	user,
	workbench
}

const concatFileName = () => {
	let returnList = {}
	let sep = '/'

	Object.keys(apiList).map(key => {
		apiList[key].forEach(e => {
			returnList[key + sep + e.name] = {
				name: e.name,
				method: e.method,
				path: e.path
			}
		})
	})
	return returnList
}

export default concatFileName()